package com.ruoyi.cat.service.impl;

import java.util.List;

import com.ruoyi.cat.domain.CatArticlegiftTable;
import com.ruoyi.cat.mapper.CatArticlegiftTableMapper;
import com.ruoyi.cat.service.ICatArticlegiftTableService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * 文章礼品清单Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-12-27
 */
@Service
public class CatArticlegiftTableServiceImpl implements ICatArticlegiftTableService
{
    @Autowired
    private CatArticlegiftTableMapper catArticlegiftTableMapper;

    /**
     * 查询文章礼品清单
     * 
     * @param id 文章礼品清单主键
     * @return 文章礼品清单
     */
    @Override
    public CatArticlegiftTable selectCatArticlegiftTableById(Long id)
    {
        return catArticlegiftTableMapper.selectCatArticlegiftTableById(id);
    }

    /**
     * 查询文章礼品清单列表
     * 
     * @param catArticlegiftTable 文章礼品清单
     * @return 文章礼品清单
     */
    @Override
    public List<CatArticlegiftTable> selectCatArticlegiftTableList(CatArticlegiftTable catArticlegiftTable)
    {
        return catArticlegiftTableMapper.selectCatArticlegiftTableList(catArticlegiftTable);
    }

    /**
     * 新增文章礼品清单
     * 
     * @param catArticlegiftTable 文章礼品清单
     * @return 结果
     */
    @Override
    public int insertCatArticlegiftTable(CatArticlegiftTable catArticlegiftTable)
    {
        return catArticlegiftTableMapper.insertCatArticlegiftTable(catArticlegiftTable);
    }

    /**
     * 修改文章礼品清单
     * 
     * @param catArticlegiftTable 文章礼品清单
     * @return 结果
     */
    @Override
    public int updateCatArticlegiftTable(CatArticlegiftTable catArticlegiftTable)
    {
        return catArticlegiftTableMapper.updateCatArticlegiftTable(catArticlegiftTable);
    }

    /**
     * 批量删除文章礼品清单
     * 
     * @param ids 需要删除的文章礼品清单主键
     * @return 结果
     */
    @Override
    public int deleteCatArticlegiftTableByIds(Long[] ids)
    {
        return catArticlegiftTableMapper.deleteCatArticlegiftTableByIds(ids);
    }

    /**
     * 删除文章礼品清单信息
     * 
     * @param id 文章礼品清单主键
     * @return 结果
     */
    @Override
    public int deleteCatArticlegiftTableById(Long id)
    {
        return catArticlegiftTableMapper.deleteCatArticlegiftTableById(id);
    }
}
